function booleanFormatter(value, column, opts) {
    if (value) {
        return "<center><img onclick='" + column.gid + "_clicked(this, " + column.rowId + ", " + value + ")' src='site/resources/img/icons/checked.gif' class='" + column.colModel.index + "'></center>";
    } else {
        return "<center><img onclick='" + column.gid + "_clicked(this, " + column.rowId + ", " + value + ")' src='site/resources/img/icons/unchecked.gif' class='" + column.colModel.index + "'></center>";
    }
}

function buysellFormatter(value) {
    if (value == "1") { return "Buy"; }
    return "Sell";
}

function imageFormatter(value) {
    return "<img src='index.php?mode=service&service=display&page=fileloader&params=a:1:{s:7:\"file_id\";i:" + value + ";}' height=80>";
}
